package com.example.test.exception;

import java.io.Serializable;

public class BusinessException extends RuntimeException implements Serializable {

    private String errorCode;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public BusinessException() {
        super();
    }


    public BusinessException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

}
